package com.bike.bikeserver.controller.frontend;

import com.bike.bikeserver.common.core.domain.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @version 1.0
 * @Author ZZX
 * @Date 2023/7/9 10:23
 */
@RestController
@RequestMapping("front/zone")
public class ZoneController
{
    /**
     * 获取热门城市
     * @return
     */
    @GetMapping("getHotCities")
    public CommonResult getHostCities()
    {
        // 调用获取八大热门城市的API（后期自己写），这里先用静态数据
        List<String> cities = new ArrayList<String>()
        {
            {
                add("北京");
                add("上海");
                add("广州");
                add("深圳");
                add("保定");
                add("成都");
                add("桂林");
                add("西安");
            }
        };
        return CommonResult.success(cities);
    }
}